#pragma once
#include"Configure.h"
class Textbox
{
private:
	int left = 0, top = 0, right = 0, bottom = 0;	
	std::string* text = NULL;
	size_t maxlen = 0;
public:
	ExMessage m_msg;
	void Create(int x1, int y1, int x2, int y2, int max);
	std::string* Text();
	bool Check(int x, int y);
	void Show();
	void OnMessage();
	void eventloop(const ExMessage &msg);
};

